package com.yoso.definition;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class PostProcessorTest {
    public static void main(String[] args) {

        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(PostProcessorConfig.class);

        System.out.println("实例化、初始化bean完成");
        MyUser myUser = (MyUser)context.getBean("myUser");
        System.out.println("Name:"+myUser.getName());
        System.out.println("Desc:"+myUser.getDesc());
    }
}
